/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hhx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.hhx.entity.HhxInvite;
import com.thinkgem.jeesite.modules.hhx.dao.HhxInviteDao;

/**
 * 单表生成Service
 * @author zmy
 * @version 2019-04-09
 */
@Service
@Transactional(readOnly = true)
public class HhxInviteService extends CrudService<HhxInviteDao, HhxInvite> {

	@Autowired
	private HhxInviteDao hhxInviteDao;
	
	public HhxInvite get(String id) {
		return super.get(id);
	}
	
	public List<HhxInvite> findList(HhxInvite hhxInvite) {
		return super.findList(hhxInvite);
	}
	
	public Page<HhxInvite> findPage(Page<HhxInvite> page, HhxInvite hhxInvite) {
		return super.findPage(page, hhxInvite);
	}
	
	@Transactional(readOnly = false)
	public void save(HhxInvite hhxInvite) {
		super.save(hhxInvite);
	}
	
	@Transactional(readOnly = false)
	public void delete(HhxInvite hhxInvite) {
		super.delete(hhxInvite);
	}

	@Transactional(readOnly = false)
	public int saveInvite(String id, String inviteid, String invitedid, String intime, String payamt, String status) {
		
		
		return hhxInviteDao.saveInvite(id,inviteid,invitedid,intime,payamt,status);
		
		
	}

	public List<Object[]> getList(String userid) {
		// TODO Auto-generated method stub
		return hhxInviteDao.getList(userid);
	}

	public List<Object[]> getList2(String userid) {
		// TODO Auto-generated method stub
		return hhxInviteDao.getList2(userid);
	}

	@Transactional(readOnly = false)
	public int saveComment(String inviteid, String invitedid, String comment) {
		// TODO Auto-generated method stub
		return hhxInviteDao.saveComment(inviteid,invitedid,comment);
	}
	
}